package com.atguigu.blog.user.feign;

import com.atguigu.blog.user.entity.Article;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "blog-article",fallbackFactory = ArticleFallBackFactoy.class)
//@FeignClient(value = "blog-article")
public interface ArticleFeignClient {

    @GetMapping("/article/user/list")
    List<Article> queryArticleList(@RequestParam Integer userId);
}
